package com.elite.config;

import com.elite.entity.A;
import com.elite.entity.B;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(ConfigProperties.class)
public class BeanConfig {
	@Bean
	public A a(B b){
		B b1 = b();
		System.out.println("b1 = " + b1);
		return new A();
	}

	@Bean
	public B b(){
		return new B();
	}
}
